package com.fzj.charging.order.mqtt;

import com.fzj.charging.order.dao.repository.ChargingProcessRepository;
import com.fzj.charging.order.dao.repository.OrderRepository;
import com.fzj.charging.order.feign.CostClient;
import com.fzj.charging.order.feign.DeviceClient;
import com.fzj.charging.order.dao.mapper.OrderFailMapper;
import com.fzj.charging.order.dao.mapper.OrderSuccessMapper;
import com.fzj.charging.order.websocket.WebSocketServer;
import lombok.Data;
import org.springframework.beans.factory.annotation.Autowired;
import org.springframework.stereotype.Component;

@Data//为该类自动生成了getter、setter、toString、equals 和 hashCode 方法，这简化了代码编写。
@Component//Spring容器会在启动时自动扫描并创建这个类的实例，同时管理其生命周期。
public class MqttContext {
    @Autowired
    private OrderSuccessMapper orderSuccessMapper;
    @Autowired
    private OrderFailMapper orderFailMapper;
    @Autowired
    private DeviceClient deviceClient;
    @Autowired
    private CostClient costClient;
    @Autowired
    private ChargingProcessRepository chargingProcessRepository;
    @Autowired
    private WebSocketServer webSocketServer;
    @Autowired
    private OrderRepository orderRepository;
}
